<script setup>
import {ref} from 'vue'
//引入路由中的useRoute
import {useRoute} from 'vue-router'
//获取路由对象
const route = useRoute()
const id = ref('')
id.value = route.params.id


</script>

<template>
    <div class="living-index-detail">
        <h1>生活指数详情页面{{id}}</h1>
    </div>
</template>

<style scoped>

</style>